package com.ybbase.framework.mapper.flow;

import com.ybbase.framework.model.po.flow.NodeRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 流程节点记录 Mapper 接口
 * </p>
 *
 * @author cg
 * @since 2019-12-04
 */
public interface NodeRecordMapper extends BaseMapper<NodeRecord> {

    List<NodeRecord> selectNodeRecordByBusinessIdAndFlowCodeList(@Param(value = "businessId") Long businessId, @Param(value = "flowCode") String flowCode);

    /**
     * 根据开户单id查询查询授权人和机构
     *
     * @param business_id
     * @return
     */
    public List<NodeRecord> getFlowData(Integer business_id);

    /**
     * 根据兑付单id查询查询授权人和机构
     *
     * @param business_id
     * @return
     */
    public List<NodeRecord> getFlowDataCash(Integer business_id);
}
